package com.ukefu.webim.web.model;

import java.util.Date;
import java.util.List;

import javax.persistence.*;

import com.ukefu.util.UKTools;
import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name = "uk_spt_salespatter")
@org.hibernate.annotations.Proxy(lazy = false)
public class SalesPatter implements AiCallOutProcess,TransAgentProcess{

	/**
	 * 话术表
	 */
	private static final long serialVersionUID = 1115593425069549681L;
	
	private String id = UKTools.getUUID();
	private String name;    //话术名称
	private String type;    //话术类型
	private String scene;   //话术适用场景（机器人呼出/坐席手动）
	private String welword; //话术欢迎语（文字）
	private String welvoice;//话术欢迎语ID（语音）
	private String weltype; //话术欢迎语类型
	private String endword; //话术结束语（文字）
	private String endvoice;//话术结束语ID（语音）
	private String endtype; //话术结束语类型
	private String totalscore;//参考评分值
	private String score;     //是否评分（0否1是）
	private String memo;      //话术描述
	private String orgi;      //租户ID
	private String creater;   //创建人
	private Date createtime;  //创建时间
	private String updater;   //更新人
	private Date updatetime;  //更新时间
	
	private String prostatus;//话术状态（0未发布/1发布）
	private String sumscore;//总评分
	private String description;//描述
	
	private String questionid;//开始问题id

	private String language;//语种

	private int delaytime;//延迟挂断时间 （秒）
	
	private int quetype;//问题类型（选择题0/问答题1/结束2/转接3）
	private String trans;//转接号码
	private boolean enabletransfercon;//该话术节点，开启逻辑转人工
	private String transferconditions;//逻辑条件（字典维护）
	private String transferequal;//逻辑比较方式 >|<|= 
	private String transfervalue;//逻辑条件值
	private String transferactivity;//活动ID，逻辑转人工的人工坐席范围，通过选择指定电销活动确定，转接到指定活动下的空闲坐席
	private String transferwvtype;//转人工提示语类型
	private String transfervoice;//转人工提示语音
	private String transferword;//转人工提示语文字
	private String transnode;//转话术节点
	private boolean event ;	//是否挂机保存采集结果
	private boolean result ;

	private List<SalesPatterMedia> salesPatterMediaList;
	private List<SalesPatterPoint> salesPatterPointList;
	private List<SalesPatterLevel> salesPatterLevelList;
	private List<QueSurveyQuestion> queSurveyQuestionList;
	private List<QueSurveyAnswer> queSurveyAnswerList;

	@Transient
	public List<SalesPatterMedia> getSalesPatterMediaList() {
		return salesPatterMediaList;
	}

	public void setSalesPatterMediaList(List<SalesPatterMedia> salesPatterMediaList) {
		this.salesPatterMediaList = salesPatterMediaList;
	}
	@Transient
	public List<SalesPatterPoint> getSalesPatterPointList() {
		return salesPatterPointList;
	}

	public void setSalesPatterPointList(List<SalesPatterPoint> salesPatterPointList) {
		this.salesPatterPointList = salesPatterPointList;
	}
	@Transient
	public List<SalesPatterLevel> getSalesPatterLevelList() {
		return salesPatterLevelList;
	}

	public void setSalesPatterLevelList(List<SalesPatterLevel> salesPatterLevelList) {
		this.salesPatterLevelList = salesPatterLevelList;
	}
	@Transient
	public List<QueSurveyQuestion> getQueSurveyQuestionList() {
		return queSurveyQuestionList;
	}

	public void setQueSurveyQuestionList(List<QueSurveyQuestion> queSurveyQuestionList) {
		this.queSurveyQuestionList = queSurveyQuestionList;
	}
	@Transient
	public List<QueSurveyAnswer> getQueSurveyAnswerList() {
		return queSurveyAnswerList;
	}

	public void setQueSurveyAnswerList(List<QueSurveyAnswer> queSurveyAnswerList) {
		this.queSurveyAnswerList = queSurveyAnswerList;
	}

	@Id
	@Column(length = 32)
	@GeneratedValue(generator = "system-uuid")
	@GenericGenerator(name = "system-uuid", strategy = "assigned")
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getScene() {
		return scene;
	}
	public void setScene(String scene) {
		this.scene = scene;
	}
	public String getWelword() {
		return welword;
	}
	public void setWelword(String welword) {
		this.welword = welword;
	}
	public String getWelvoice() {
		return welvoice;
	}
	public void setWelvoice(String welvoice) {
		this.welvoice = welvoice;
	}
	public String getWeltype() {
		return weltype;
	}
	public void setWeltype(String weltype) {
		this.weltype = weltype;
	}
	public String getEndword() {
		return endword;
	}
	public void setEndword(String endword) {
		this.endword = endword;
	}
	public String getEndvoice() {
		return endvoice;
	}
	public void setEndvoice(String endvoice) {
		this.endvoice = endvoice;
	}
	public String getEndtype() {
		return endtype;
	}
	public void setEndtype(String endtype) {
		this.endtype = endtype;
	}
	public String getTotalscore() {
		return totalscore;
	}
	public void setTotalscore(String totalscore) {
		this.totalscore = totalscore;
	}
	public String getScore() {
		return score;
	}
	public void setScore(String score) {
		this.score = score;
	}
	public String getMemo() {
		return memo;
	}
	public void setMemo(String memo) {
		this.memo = memo;
	}
	public String getOrgi() {
		return orgi;
	}
	public void setOrgi(String orgi) {
		this.orgi = orgi;
	}
	public String getCreater() {
		return creater;
	}
	public void setCreater(String creater) {
		this.creater = creater;
	}
	public Date getCreatetime() {
		return createtime;
	}
	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}
	public String getUpdater() {
		return updater;
	}
	public void setUpdater(String updater) {
		this.updater = updater;
	}
	public Date getUpdatetime() {
		return updatetime;
	}
	public void setUpdatetime(Date updatetime) {
		this.updatetime = updatetime;
	}
	public String getProstatus() {
		return prostatus;
	}
	public void setProstatus(String prostatus) {
		this.prostatus = prostatus;
	}
	public String getSumscore() {
		return sumscore;
	}
	public void setSumscore(String sumscore) {
		this.sumscore = sumscore;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getQuestionid() {
		return questionid;
	}
	public void setQuestionid(String questionid) {
		this.questionid = questionid;
	}

	public String getLanguage() {
		return language;
	}

	public void setLanguage(String language) {
		this.language = language;
	}

	public int getDelaytime() {
		return delaytime;
	}

	public void setDelaytime(int delaytime) {
		this.delaytime = delaytime;
	}

	public boolean isEnabletransfercon() {
		return enabletransfercon;
	}

	public void setEnabletransfercon(boolean enabletransfercon) {
		this.enabletransfercon = enabletransfercon;
	}

	public String getTransferconditions() {
		return transferconditions;
	}

	public void setTransferconditions(String transferconditions) {
		this.transferconditions = transferconditions;
	}

	public String getTransferequal() {
		return transferequal;
	}

	public void setTransferequal(String transferequal) {
		this.transferequal = transferequal;
	}

	public String getTransfervalue() {
		return transfervalue;
	}

	public void setTransfervalue(String transfervalue) {
		this.transfervalue = transfervalue;
	}

	public String getTransferactivity() {
		return transferactivity;
	}

	public void setTransferactivity(String transferactivity) {
		this.transferactivity = transferactivity;
	}

	public String getTransferwvtype() {
		return transferwvtype;
	}

	public void setTransferwvtype(String transferwvtype) {
		this.transferwvtype = transferwvtype;
	}

	public String getTransfervoice() {
		return transfervoice;
	}

	public void setTransfervoice(String transfervoice) {
		this.transfervoice = transfervoice;
	}

	public String getTransferword() {
		return transferword;
	}

	public void setTransferword(String transferword) {
		this.transferword = transferword;
	}

	public String getTransnode() {
		return transnode;
	}

	public void setTransnode(String transnode) {
		this.transnode = transnode;
	}

	public int getQuetype() {
		return quetype;
	}

	public void setQuetype(int quetype) {
		this.quetype = quetype;
	}

	public String getTrans() {
		return trans;
	}

	public void setTrans(String trans) {
		this.trans = trans;
	}

	public boolean isEvent() {
		return event;
	}

	public void setEvent(boolean event) {
		this.event = event;
	}

	public boolean isResult() {
		return result;
	}

	public void setResult(boolean result) {
		this.result = result;
	}
}
